<?php

//Google Map Settings
define("MAPS_HOST", "maps.google.com");
define("KEY", "0hDtBiE_p9_xahCQJO_oAa1avgJzn3TGoNlBp8Q");
define('EARTH_RADIUS', 6371);
define('aboutus', 1);
define('PhilosopyId', 1);
define('antiRaging', 2);
define('antiRagingDescription', 3);
define('JudicialReformsPage', 3);
define('JudicialReformsPageDescription', 4);
define('JoinusPage', 4);
define('JoinusPageDescription', 5);

class aqConfig {

    public static function getUploadDir() {
        return '/upload/';
    }

    public static function getImageDir() {
        return YiiBase::getPathOfAlias('webroot') . '/images';
    }

    public static function getImageUrl() {
        return Yii::app()->getBaseUrl() . '/images';
    }

    public static function getCmsContent($pageid, $descriptionid) {
        $value = CmsPageDescription::model()->findByAttributes(array('cms_page_id' => $pageid, 'id' => $descriptionid));
        return $value;
    }

    public static function getCmsContentAlldata($pageid,$descriptionid) {
        $value = CmsPageDescription::model()->findAll('cms_page_id=' . $pageid . ' AND id!=' . $descriptionid);
        return $value;
    }
    public static function getEmailDir() {
        return Yii::app()->getBasePath() . '/views/email/';
    }


}

?>